
<?php 
include('../../Connections/KRAPPERCON.php');
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<thead>
  <tr>
    <th scope="col">Código</th>
    <th scope="col">Descripción</th>
  </tr>
  </thead>
  <tbody>
  <?php 
  
  $code = getVal('code');
  $clase = getVal('clase');
  $fami = getVal('fami');
  
  $code = str_replace("*","%",$code);
  $sql = "select ArticuloID,ArticuloName from tt_articulo where ArticuloID like '".$code."'";
  $res = $mysqli->execQuery($sql);
  if($res){
  while($row=$res->fetch_assoc()){}
  ?>
  <tr>
    <td><a href="#" onClick="selArt(this)"><?php echo $row['ArticuloID'];?></a></td>
    <td><?php echo $row['ArticuloName'];?></td>
  </tr>
  <?php
  }
  $res->close();
  $mysqli->check_result();
  }
  ?>
  </tbody>
</table>

